package com.ruoyi.livedemo.dto;

import java.util.List;
import lombok.Builder;
import lombok.Data;

/**
 * 甜蜜统计图总览数据，供前端仪表盘展示。
 */
@Data
@Builder
public class AnalyticsOverview {

    private MoodSummary moodSummary;
    private GoalSummary goalSummary;
    private List<InteractionItem> interactions;
    private List<String> suggestions;

    @Data
    @Builder
    public static class MoodSummary {
        private int totalEntries;
        private String dominantMood;
        private int dominantPercentage;
        private List<MoodSlice> breakdown;
    }

    @Data
    @Builder
    public static class MoodSlice {
        private String label;
        private long count;
    }

    @Data
    @Builder
    public static class GoalSummary {
        private int total;
        private int completed;
        private int inProgress;
        private int pending;
        private int archived;
        private int completionRate;
    }

    @Data
    @Builder
    public static class InteractionItem {
        private String label;
        private int count;
    }
}
